package com.punch.user.mapper;

import com.punch.common.vo.user.guardian.GuardianStudentVO;
import com.punch.common.vo.user.guardian.SimpleStudentVO;
import com.punch.common.vo.user.student.StudentVO;
import com.punch.db.mapper.SuperMapper;
import com.punch.user.model.SysGuardianStudent;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 家长信息表
 *
 * @author xiaol
 * @since 2020/7/29 22:53
 */
@Mapper
public interface SysGuardianStudentMapper extends SuperMapper<SysGuardianStudent> {


    /**
     * 获取家长已添加的学生列表
     *
     * @param userId 家长id
     * @return List<GuardianStudentVO>
     */
    List<GuardianStudentVO> selectGuardianStudent(@Param("userId") Long userId);

    /**
     * 根据id查询学生信息
     *
     * @param userId    用户uid
     * @param studentId 学生id
     * @return StudentVO
     */
    StudentVO selectStudent(@Param("userId") Long userId, @Param("studentId") Long studentId);

    /**
     * 简单学生列表
     *
     * @param userId 用户uid
     * @return List<SimpleStudentVO>
     */
    List<SimpleStudentVO> selectSimpleStudent(@Param("userId") Long userId);
}
